﻿#region

using System.Collections.Generic;
using BusinessObjects;
using DataAccessLayer;

#endregion

namespace BusinessLogicLayer
{
    public static class CityBLL
    {
        /// <summary>
        ///     Get all cites by district id
        /// </summary>
        /// <param name="districtId">Represent's the district Id</param>
        /// <returns>List of districts</returns>
        public static List<City> GetAllCitiesByDistrictId(byte districtId)
        {
            return CityDAL.GetAllCitiesByDistrictId(districtId);
        }

        /// <summary>
        ///     Get city by city id
        /// </summary>
        /// <param name="cityId">Represent's the city id</param>
        /// <returns>City</returns>
        public static City GetCityById(byte cityId)
        {
            return CityDAL.GetCityById(cityId);
        }

        public static List<City> GetAllCities()
        {
            return CityDAL.GetAllCities();
        }
    }
}